import React from 'react';
import { createSlice } from "@reduxjs/toolkit";

interface themeState {
    light: React.CSSProperties;
    dark: React.CSSProperties;
    collapsed: boolean
}

const initialState: themeState = {
    light: {
        
    },
    dark: {

    },
    collapsed: false
}

const theme = createSlice({
    name: "theme",
    initialState,
    reducers: {
        setCollapsed: (state) => {
            state.collapsed = !state.collapsed;
        }
    }
});


export const { setCollapsed } = theme.actions;

export default theme.reducer;

